﻿using UnityEngine;
using System.Collections;

public class ShipModuleData : MonoBehaviour {

	// module counts
	public static int crewSlots = 3;
	public static int botCrewSlots = 1;

	// default module grades
	public static int defaultHullLv = 1;
	public static int defaultRepairModLv = 1;
	public static int defaultShieldGeneratorLv = 1;
	public static int defaultLifeSupportLv = 1;
	public static int defaultHullPlatingLv = 0;
	public static int defaultEnginesLv = 1;
	public static int defaultRadarLv = 1;
	public static int defaultReactorLv = 1;
	public static int defaultCrewLv = 1;
	public static int defaultAlarmLv = 1;
	public static int defaultCargoLv = 1;

	// current module grades
	public static int hullLv = 1;
	public static int repairModLv = 1;
	public static int shieldGeneratorLv = 1;
	public static int lifeSupportLv = 1;
	public static int hullPlatingLv = 0;
	public static int enginesLv = 1;
	public static int radarLv = 1;
	public static int reactorLv = 1;
	public static int crewLv = 1;
	public static int alarmLv = 1;
	public static int cargoLv = 1;

	// module powered?
	public static bool repairModON;
	public static bool shieldGeneratorON;
	public static bool lifeSupportON;
	public static bool enginesON;
	public static bool radarON;
	public static bool alarmON;
	public static bool dampenersON;

	// reactor output
	public static int reactorOutput = 90 + reactorLv * 10;

	// module power usages
	public static int enginesEP = 22 * enginesLv;
	public static int repairModEP = 12 * repairModLv;
	public static int shieldGeneratorEP = 25 * shieldGeneratorLv;
	public static int lifeSupportEP = 10 * lifeSupportLv;
	public static int radarEP = 5 * radarLv;
	public static int alarmEP = 6 - alarmLv;
	public static int cargoEP = 0;
	public static int botCrewEP = 6 * GameManager.playerBotCrew;
	public static int dampenersEP = 3;

	/*
	public static int ToInt(bool b)
	{
		if (b == true)
			return 1;
		if (b == false)
			return 0;
		else
			return 0;
	}
	*/

	void Start()
	{
		//
	}

	public void update()
	{
		//
	}

}
